package wxk.interview.hash.map;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author wangxuekai
 * @version 2.2
 * @Date 2017/3/22.
 * @since 2.2
 */
public class ConcurrentHashMapTest {



    public static void main(String[] args){
        ConcurrentHashMap<String,String> concurrentHashMap = new ConcurrentHashMap<String, String>();

        concurrentHashMap.put("1","2");
       // concurrentHashMap.put(null,"null"); //k不能为null
      //  concurrentHashMap.put("null",null); // value 不能为null

        System.out.println(concurrentHashMap);
    }
}
